<?php
require("header.php");
require("left.php");
?>
        
<a href="<?php echo $_SERVER['PHP_SELF'];?>?add">Adauga</a>
        
<h3>Atribute</h3>
<?php
    if($success = getsession('success')) { ?>
        <div class="sukses">
        <?php echo $success; setsession('success'); ?>
        </div>
    <?php }
?>

    <table class="data">
        <tr class="data">
            <th class="data" width="30px">ID</th>
            <th class="data">Nume</th>
            <th class="data">Prioritate</th>
            <th class="data" width="75px">Actiuni</th>
        </tr>
        <?php
        foreach($objects as $object)
        {
        ?>
        <tr class="data">
            <td class="data" width="30px"><?php echo $object['id']; ?></td>
            <td class="data"><?php echo $object['nume']; ?></td>
            <td class="data"><?php echo $object['prioritate']; ?></td>
            <td class="data" width="75px">
                <a href="?view=<?php echo $object['id']; ?>"><img src="mos-css/img/detail.png"></a>&nbsp;&nbsp;&nbsp;
                <a href="?edit=<?php echo $object['id']; ?>"><img src="mos-css/img/edit.png"></a>&nbsp;&nbsp;&nbsp;
                <a href="?del=<?php echo $object['id']; ?>"><img src="mos-css/img/delete.png"></a>
            </td>
        </tr>
        <?php
        }
        ?>
    </table>

<?php
require("right.php");
require("footer.php");